import request from '@/utils/request.js'

const prefix = '/api/stadiumTableOrder'

// 桌台订单列表
export function stadiumTableOrderList(params) {
	return request({
		url: prefix + '/list',
		method: 'get',
		params: params
	})
}

// 桌台订单信息
export function stadiumTableOrderInfo(id) {
	return request({
		url: prefix + '/info/' + id,
		method: 'get'
	})
}

export function stadiumTableOrderByorderNo(orderNo) {
	return request({
		url: prefix + '/infoNo/' + orderNo,
		method: 'get'
	})
}


//订单是否支付成功
export function isPaySuccess(orderNo) {
	return request({
		url: prefix + '/isPaySuccess/' + orderNo,
		method: 'get'
	})
}

//取消订单
export function cancelOrder(data) {
	return request({
		url: prefix + '/cancel',
		method: 'Put',
		data:data
	})
}